home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / man / origami.man < prev    next >
Encoding:
Text File  |  1996-09-27  |  18.4 KB  |  463 lines

  1.  
  2.  
  3.  
  4. ORIGAMI(1)                                             ORIGAMI(1)
  5.  
  6.  
  7. NNAAMMEE
  8.        origami      -      a      folding     editor,     version
  9.        >>>MAJOR_VERSION<<<.>>>MINOR_VERSION<<<.>>>REVISION<<<
  10.  
  11. SSYYNNOOPPSSIISS
  12.        oorriiggaammii [--eehhiinnooppvvAACCDDPPVVZZ] [--aa _d_e_l_a_y] [--dd _d_i_s_p_l_a_y_-_m_o_d_e] [--ff
  13.        _m_a_t_c_h] [--kk _n_a_m_e] [--ll _l_i_n_e] [--mm _m_a_r_k_s] [--tt _h_a_r_d_-_t_a_b_-_w_i_d_t_h]
  14.        [--FF _n_o_m_a_t_c_h] [--KK _A||_N] [--MM _m_a_r_k_s] [--NN _n_u_m_b_e_r] [--OO _o_c_l_-
  15.        _v_a_l_u_e] [--RR _>_>_>_R_C___E_N_D_I_N_G_<_<_<_-_p_a_t_h] [--SS _s_h_e_l_l] [--TT _d_e_f_a_u_l_t_-
  16.        _n_a_m_e] [--XX _o_s _s_p_e_c_i_f_i_c _o_p_t_i_o_n] [--WW _w_i_n_d_o_w _n_a_m_e] [_f_i_l_e_s]
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.        OOrriiggaammii is a folding editor similar to the one included in
  20.        the  Inmos(c)  Tds  or  Parsytec(c)  MultiTool  Transputer
  21.        Development Systems.  The major difference is that OOrriiggaammii
  22.        is  public  domain,  the differences concern its usage and
  23.        more features, for example the macro  language  OCL.   You
  24.        can  use  OOrriiggaammii  for  usual  text  files  without  null-
  25.        characters.  Tds/mtool files can be edited too.
  26.  
  27.        If OOrriiggaammii is started within a pipe, it appends  the  text
  28.        coming  from  its  standard  input  to the chosen text and
  29.        tries to open the controlling terminal for controlling the
  30.        editor  session.   If no file is given, //ddeevv//nnuullll is used.
  31.        The cursor is moved to the beginning of the piped text.
  32.  
  33.        If the special character to  generate  signal  stop  (stty
  34.        susp  ..)  is not defined, command line option --ZZ is acti-
  35.        vated automatically.
  36.  
  37. OOPPTTIIOONNSS
  38.        --aa _d_e_l_a_y, 1<=_d_e_l_a_y<=60
  39.               OOrriiggaammii will start  in  auto-save-mode  with  _d_e_l_a_y
  40.               minutes  (--aa  00,  no auto-save).  Multiple usage of
  41.               this option is allowed.  The last  given  value  is
  42.               used.  Default value is 8.
  43.  
  44.        --dd _d_i_s_p_l_a_y_-_m_o_d_e
  45.               Specify  the character display mode. _f_I_d_i_s_p_l_a_y_-_m_o_d_e
  46.               is a list of code (like in sseett--ddiissppllaayy--mmooddee).
  47.               oo - octal display
  48.               dd - decimal display
  49.               hh - hexadecimal display
  50.               mm - mark control characters
  51.               ii - invers control characters
  52.               nn - numbered control characters
  53.               pp - normal character display
  54.               88 - numbered display of 8-bit characters
  55.               aa - numbered display of all characters
  56.               tt_n_u_m_b_e_r - tab width is set to _n_u_m_b_e_r
  57.  
  58.        --ee     OOrriiggaammii does not echo the entered  keys  under  the
  59.               statusline.
  60.  
  61.  
  62.  
  63.  
  64.                           June 23, 1993                         1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ORIGAMI(1)                                             ORIGAMI(1)
  71.  
  72.  
  73.        --ff _m_a_t_c_h
  74.               OOrriiggaammii  will  pass  '--ff _m_a_t_c_h' to ddiirrffoolldd.  Can be
  75.               used to specify the files, which will be  shown  in
  76.               diredit mode.
  77.  
  78.        --hh     OOrriiggaammii prints its usage.
  79.  
  80.        --ii     Like --ddii.
  81.  
  82.        --kk _n_a_m_e_b_a_s_e
  83.               OOrriiggaammii  reads  the  keybinding and the bindinglist
  84.               from file ..oorriiggaammiirrcc, the help  from  ..oorriiggaammiihheellpp.
  85.               This  option sets the files to _n_a_m_e_b_a_s_errcc and _n_a_m_e_-
  86.               _b_a_s_ehheellpp.  If OOrriiggaammii cannot find the files in  the
  87.               current  directory, OOrriiggaammii tries to find the files
  88.               in the directories $$HHOOMMEE or  OORRIIGGAAMMII__PPAATTHH  (set  at
  89.               compiletime).    Origami   searches   only  in  the
  90.               resource path, if the given  argument  _n_a_m_e_b_a_s_e  is
  91.               not  an absolute path.  This option is not allowed,
  92.               if --OO has been used before!
  93.  
  94.        --ll _l_i_n_e
  95.               Goto _l_i_n_e after setting up.  Multiple usage  of  --ll
  96.               ..  is not allowed.
  97.  
  98.        --mm _m_a_r_k_n_a_m_e
  99.               OOrriiggaammii  searches  in the rcfile for a set of fold-
  100.               marks named _m_a_r_k_n_a_m_e.  If there is no such  markset
  101.               given,  OOrriiggaammii will stop.  Otherwise the marks for
  102.               folds are switched to the new ones.  Multiple usage
  103.               of --mm .. is not allowed.
  104.  
  105.        --nn     Every  time  a  file  is  read this will take place
  106.               without the {{{{{{, }}}}}} or :::::: sequences being parsed.
  107.               Folds  can  be  used  when editing, but there is no
  108.               folding-structure in the read  file.   This  allows
  109.               the  editing  of  files which contain these strings
  110.               without confusing OOrriiggaammii.  The Inmos  format  will
  111.               not  be  decoded  if  this  option is active.  This
  112.               `non-folding' mode  concerns  only  reading  files.
  113.               Creating  new folds or writing files using language
  114.               Inmos is possible.
  115.  
  116.        --oo     OOrriiggaammii starts in overwrite-mode.
  117.  
  118.        --pp     Preprocessormode is on.  Leading hashes  are  moved
  119.               to  first  character  in lines.  Reading such files
  120.               moves hashes to indentation of surrounding folds.
  121.  
  122.        --tt _t_a_b_-_w_i_d_t_h
  123.               Like --ddtt_<_t_a_b_-_w_i_d_t_h_>.
  124.  
  125.        --vv     OOrriiggaammii starts in view-mode.
  126.  
  127.  
  128.  
  129.  
  130.                           June 23, 1993                         2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ORIGAMI(1)                                             ORIGAMI(1)
  137.  
  138.  
  139.        --AA     OOrriiggaammii starts not with the first file  in  command
  140.               line,  but  with  the  list  of  given files.  This
  141.               option is ignored, if there are  not  more  than  1
  142.               command line file or if OOrriiggaammii is started within a
  143.               pipe.
  144.  
  145.        --CC     Do not display the copyright message at startup.
  146.  
  147.        --DD     Dump core on crash.
  148.  
  149.        --FF _n_o_m_a_t_c_h
  150.               OOrriiggaammii will pass '--FF _n_o_m_a_t_c_h' to ddiirrffoolldd.  Can  be
  151.               used  to specify the files, which will not be shown
  152.               in diredit mode.
  153.  
  154.        --KK_A,--KK_N
  155.               Origami changes the mode of the keypad to  applica-
  156.               tion  (_A)  or numerical (_N) mode at startup, if the
  157.               terminal supports  this.   Default  is  application
  158.               (_A).
  159.  
  160.        --MM_m_a_r_k_s
  161.               Folder  replaces  the  foldmarks  by the characters
  162.               given with _m_a_r_k_s.  aaaaaabbbbbbccccccdddddd is evaluated:
  163.               aaaaaa for start of fold
  164.               bbbbbb for filed fold name
  165.               cccccc for closed fold
  166.               dddddd for end of fold
  167.               None of these strings may start with a space  or  a
  168.               tab!
  169.  
  170.        --NN _n_u_m_b_e_r
  171.               If  OOrriiggaammii  is  compiled  with support for storing
  172.               lines on backing store, this options sets the  num-
  173.               ber of buffered lines.
  174.  
  175.        --OO _o_c_l_-_v_a_l_u_e
  176.               Change  the  value  of  OCL  integer  variable ooccll--
  177.               aarrgguummeenntt to _o_c_l_-_v_a_l_u_e.   If  the  current  bindings
  178.               supports   it,   you  can  use  literals.   oorriiggaammii
  179.               [--kk_b_i_n_d_i_n_g] --hh will show all known  literals.   See
  180.               in the User Manual for more advanced options.  Mul-
  181.               tiple usage of this option  is  allowed.   If  this
  182.               option  is  not  used,  ooccll--aarrgguummeenntt is initialized
  183.               with --11.
  184.  
  185.        --PP     Don't open the controlling terminal, if called in a
  186.               pipe.
  187.  
  188.        --RR _r_c_-_p_a_t_h
  189.               Specify the path list for origami resource files.
  190.  
  191.        --SS _s_h_e_l_l
  192.               Secure mode is activated.
  193.  
  194.  
  195.  
  196.                           June 23, 1993                         3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ORIGAMI(1)                                             ORIGAMI(1)
  203.  
  204.  
  205.               Pipe-commands  are  disabled and shell-commands use
  206.               _s_h_e_l_l.  If _s_h_e_l_l is the empty word,  shell-commands
  207.               are  also  disabled.   If --SS_s_h_e_l_l is used, the only
  208.               pipe, called by Origami, is 'ddiirrffoolldd _._._.', to  han-
  209.               dle the editing of directories.
  210.  
  211.        --TT _d_e_f_a_u_l_t_-_n_a_m_e
  212.               This  option  is only available, if OOrriiggaammii is com-
  213.               piled to support xterms.  In this case, this option
  214.               enables OOrriiggaammii to set the xterm window name to the
  215.               name of the current file.  After OOrriiggaammii  has  fin-
  216.               ished,  the window name is changed to _d_e_f_a_u_l_t_-_n_a_m_e.
  217.               Multiple usage of this option is allowed.  The last
  218.               given  value  is  used.   If the given value is the
  219.               empty string, xxtteerrmm is used.
  220.  
  221.        --XX _o_s _s_p_e_c_i_f_i_c _o_p_t_i_o_n
  222.               Some special versions of OOrriiggaammii use this option to
  223.               handle  additional  features.   See the OS-specific
  224.               documents for more information.
  225.  
  226.        --VV     OOrriiggaammii starts in verbose-mode.
  227.  
  228.        --WW _w_i_n_d_o_w _n_a_m_e
  229.               _w_i_n_d_o_w _n_a_m_e will be displayed in the statusline, in
  230.               front of the filename. _w_i_n_d_o_w _n_a_m_e will also appear
  231.               in the title of xterms, if --TT  is  used.   This  is
  232.               intended for users of Virtual Terminal environments
  233.               such as Screen, where  the  Terminal  Name  can  be
  234.               stored  in an environment variable.  This means one
  235.               can distinguish between several sessions on several
  236.               terminals.
  237.  
  238.        --ZZ     OOrriiggaammii cannot be stopped via ssuussppeenndd--oorriiggaammii.
  239.  
  240. EENNVVIIRROONNMMEENNTT
  241.        >>>>>>HHOOMMEE<<<<<<
  242.               value for expanding ~~ or ~~//.
  243.  
  244.        >>>>>>TTEERRMM<<<<<<
  245.               get the currently used terminal typ.
  246.  
  247.        >>>>>>OORRIITTEERRMM<<<<<<
  248.               read  the keytable for terminal $$>>>>>>OORRIITTEERRMM<<<<<<, not
  249.               for terminal $$>>>>>>TTEERRMM<<<<<<.
  250.  
  251.        >>>>>>SSHHEELLLL<<<<<<
  252.               specify the shell for shell escapes.
  253.  
  254.        >>>>>>OORRIIAARRGG<<<<<<
  255.               can be used, to  specify  default  options.   These
  256.               options   are  handled,  before  any  command  line
  257.               options are read.  Origami  reads  the  string  and
  258.               divides  the  space/tab separated substrings into a
  259.  
  260.  
  261.  
  262.                           June 23, 1993                         4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ORIGAMI(1)                                             ORIGAMI(1)
  269.  
  270.  
  271.               new argument list.
  272.  
  273.        >>>>>>OORRIIPPAATTHH<<<<<<,>>>>>>OORRIIPPAATTHH__11<<<<<<
  274.               specifies the list of directories, Origami uses  to
  275.               store          its          resource         files.
  276.               >>>ORI_RC_PATH_MANTEXT<<<
  277.  
  278. DDIIAAGGNNOOSSTTIICCSS
  279.        OOrriiggaammii complains, if the needed resource  files  are  not
  280.        online or if
  281.  
  282.        OOrriiggaammii cannot get needed information from termcap or if
  283.  
  284.        OOrriiggaammii  produces  the following exit status codes (brack-
  285.        eted values represent the UNIX  standard  values  for  the
  286.        given symbolic names):
  287.  
  288.               EX_OK(0)
  289.                      normal termination
  290.  
  291.               EX_USAGE(64)
  292.                      given arguments were incorrect
  293.  
  294.               EX_NOINPUT(66)
  295.                      OOrriiggaammii cannot read from its inputstream
  296.  
  297.               EX_UNAVAILABLE(69)
  298.                      init  of  screen  or  keyboard  failed.,  or
  299.                      >>>RC_ENDING<<<-file error
  300.  
  301.               EX_SOFTWARE(70)
  302.                      internal OCL-error or line to long (shifting
  303.                      of folds).
  304.  
  305.               EX_OSERR(71)
  306.                      memory  full,  OOrriiggaammii  cannot malloc memory
  307.                      for new text nodes
  308.  
  309.               EX_CANTCREATE(73)
  310.                      file was changed and not saved before  exit-
  311.                      ing OOrriiggaammii
  312.  
  313.        The following exit codes are not standard unix exit codes:
  314.  
  315.               1      deadly signal arrived, OOrriiggaammii tries to dump
  316.                      changed files
  317.  
  318.               2      internal  memory management for virtual line
  319.                      handling crashed, maybe the tmp-file is dam-
  320.                      aged
  321.  
  322.               3      exiting OOrriiggaammii cannot give a proper return-
  323.                      value, should never appear
  324.  
  325.  
  326.  
  327.  
  328.                           June 23, 1993                         5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. ORIGAMI(1)                                             ORIGAMI(1)
  335.  
  336.  
  337. BBUUGGSS AANNDD LLIIMMIITTAATTIIOONNSS
  338.        Linelength is limited by >>>LINELEN<<<.  In language IInnmmooss
  339.        Origami will warn, if lines are longer then >>>TDS_LEN<<<.
  340.  
  341.        Reading a file with  fold-structure  needs  searching  for
  342.        {{{{{{,  }}}}}}  and  ::::::  (or the ones, given with --mm_m_a_r_k_n_a_m_e).
  343.        This is done with little checking the right  comment  syn-
  344.        tax.   Files containing such strings in a non folding con-
  345.        text are not guaranteed to be handled properly.  Use  com-
  346.        mand  line  option  --nn or --mm to prevent problems.  OOrriiggaammii
  347.        uses the following rules to handle incorrect files:
  348.  
  349.               incorrect user comment type
  350.                      If the comment language is  already  defined
  351.                      (either  by  a  {{{{{{}}}}}}-line  or a fold line,
  352.                      using a  predefined  fold  language)  and  a
  353.                      {{{{{{}}}}}}-line appears, this line is handled as
  354.                      normal text.
  355.  
  356.                      Writing such files can be  tricky.   In  the
  357.                      written  file,  the language comment appears
  358.                      at the first fold first.  If the {{{{{{}}}}}}-line
  359.                      is  in front of that first fold, OOrriiggaammii may
  360.                      not be able, to read the file with folds.
  361.  
  362.               multiple comment types
  363.                      Each file may only use one  comment  syntax.
  364.                      All  foldmarks  using another comment syntax
  365.                      than the first one  are  handled  as  normal
  366.                      text.  This  can  be used to edit files with
  367.                      {{{{{{, .., if you add an empty fold  in  front
  368.                      of your text.
  369.  
  370.               missing ooppeenn--ffoolldd-lines
  371.                      cclloossee--ffoolldd-lines without corresponding ooppeenn--
  372.                      ffoolldd-lines are handled as normal text.
  373.  
  374.               missing cclloossee--ffoolldd-lines
  375.                      Folds  with  missing  cclloossee--ffoolldd-lines   are
  376.                      closed  at  eenndd--ooff--ffiillee.   OOrriiggaammii complains
  377.                      and adds a new  commented  line,  containing
  378.                      the number of automatically closed folds, at
  379.                      end of the file.
  380.  
  381.        This error handling  is  not  active,  while  reading  the
  382.        binary  TTDDSS-format.   If  TTDDSS-files are corrupted, OOrriiggaammii
  383.        tries to dump a core and exits.
  384.  
  385.        OOrriiggaammii doesn't check, if changing the  indentation  of  a
  386.        closed  fold  generates  lines  longer the permitted line-
  387.        length.
  388.  
  389.        Changing the fold comment language from Inmos  to  another
  390.        language  can  remove  additional  information about fold-
  391.  
  392.  
  393.  
  394.                           June 23, 1993                         6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. ORIGAMI(1)                                             ORIGAMI(1)
  401.  
  402.  
  403.        types and can destroy the fold structure.  Though we use a
  404.        better  format, to represent Inmos-files in ASCII, we can-
  405.        not guarantee, that this coding is  perfect.   Be  careful
  406.        and test, if the format is secure for your application.
  407.  
  408.        Tabs are only allowed in places, where normal text charac-
  409.        ters are allowed too.  There is no  pretty  way  to  allow
  410.        tabs in front of the indentation level of a fold.
  411.  
  412.        OOrriiggaammii uses the first of the following facilities to mark
  413.        highlighted text:
  414.  
  415.               ssoo/ssee - standout
  416.  
  417.               mmrr/mmee - reverse video
  418.  
  419.               uuss/uuee - underscore
  420.  
  421.        The Option --ii will be ignored, if no highlighting  can  be
  422.        done.
  423.  
  424.        Aborting  running macros on terminals with xxss may be buggy
  425.        concerning cleaning standout mode.   A  full  redraw  will
  426.        solve this problem.
  427.  
  428.        OOrriiggaammii  uses  the  termcap  capabilities  ccoo  (number  of
  429.        columns) and llii (number of lines) to read the window size.
  430.        Therefor  a  correct  handling  of resized windows is only
  431.        possible, if ttggeettnnuumm((""llii"")) and  ttggeettnnuumm((""ccoo""))  return  the
  432.        correct window size.
  433.  
  434.        If  the  environment  variable >>>>>>TTEERRMM<<<<<< is set to xxtteerrmm,
  435.        OOrriiggaammii uses a special escape sequence to read the  window
  436.        size directly from the xterm.
  437.  
  438. SSEEEE AALLSSOO
  439.        autoalias(1),     dirfold(1),    getopt(3),    keybind(1),
  440.        viewrc(1), Origami User Manual
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.                           June 23, 1993                         7
  461.  
  462.  
  463.